package com.entmanage.base.oa.service;

import java.util.List;
import com.entmanage.base.oa.domain.OaReimbursementApply;

/**
 * OA报销申请主Service接口
 * 
 * @author lsq
 * @date 2025-09-25
 */
public interface IOaReimbursementApplyService 
{
    /**
     * 查询OA报销申请主
     * 
     * @param id OA报销申请主主键
     * @return OA报销申请主
     */
    public OaReimbursementApply selectOaReimbursementApplyById(Long id);

    /**
     * 查询OA报销申请主列表
     * 
     * @param oaReimbursementApply OA报销申请主
     * @return OA报销申请主集合
     */
    public List<OaReimbursementApply> selectOaReimbursementApplyList(OaReimbursementApply oaReimbursementApply);

    /**
     * 新增OA报销申请主
     * 
     * @param oaReimbursementApply OA报销申请主
     * @return 结果
     */
    public int insertOaReimbursementApply(OaReimbursementApply oaReimbursementApply);

    /**
     * 修改OA报销申请主
     * 
     * @param oaReimbursementApply OA报销申请主
     * @return 结果
     */
    public int updateOaReimbursementApply(OaReimbursementApply oaReimbursementApply);

    /**
     * 批量删除OA报销申请主
     * 
     * @param ids 需要删除的OA报销申请主主键集合
     * @return 结果
     */
    public int deleteOaReimbursementApplyByIds(Long[] ids);

    /**
     * 删除OA报销申请主信息
     * 
     * @param id OA报销申请主主键
     * @return 结果
     */
    public int deleteOaReimbursementApplyById(Long id);

    void sendReimbursementApprovalEmail(
            List<Long> approverIds,
            List<Long> ccIds,
            String reimbursementType,
            String reason,
            String totalAmount,
            String applicantName);

    List<OaReimbursementApply> selectByApproverId(Long approverId);
    List<OaReimbursementApply> selectByCcId(Long currentUserId);
}
